<?php
$this->breadcrumbs=array(
	'Projects'=>array('index'),
	$model->name,
);
$acc = UserModule::isAdmin();
if($acc == true ){
	$this->menu=array(
		array('label'=>UserModule::t('Manage Users'), 'url'=>array('/user/admin')),
		array('label'=>UserModule::t('Manage Profile Field'), 'url'=>array('/user/profileField/admin')),
		array('label'=>UserModule::t('List User'), 'url'=>array('/user')),
		array('label'=>'Manage Project', 'url'=>array('/user/project')),
		array('label'=>'Manage Content', 'url'=>array('/master/content')),
		array('label'=>UserModule::t('Logout'), 'url'=>array('/user/logout')),
	);
}else{
$this->menu=array(
		array('label'=>UserModule::t('Profile'), 'url'=>array('/user/profile')),
		array('label'=>UserModule::t('Edit'), 'url'=>array('/user/profile/edit')),
		array('label'=>UserModule::t('Change password'), 'url'=>array('/user/profile/changepassword')),
		array('label'=>'Project', 'url'=>array('/user/project')),
		array('label'=>UserModule::t('Logout'), 'url'=>array('/user/logout')),
	);
}
?>

<h1>View Project #<?php echo $model->id; ?></h1>
<hr />
<?php 
$this->beginWidget('zii.widgets.CPortlet', array(
	'htmlOptions'=>array(
		'class'=>''
	)
));
$this->widget('bootstrap.widgets.TbMenu', array(
	'type'=>'pills',
	'items'=>array(
		array('label'=>'Create', 'icon'=>'icon-plus', 'url'=>Yii::app()->controller->createUrl('create'), 'linkOptions'=>array()),
                array('label'=>'List', 'icon'=>'icon-th-list', 'url'=>Yii::app()->controller->createUrl('index'), 'linkOptions'=>array()),
                array('label'=>'Update', 'icon'=>'icon-edit', 'url'=>Yii::app()->controller->createUrl('update',array('id'=>$model->id)), 'linkOptions'=>array()),
		
)));
$this->endWidget();
?>
<div class='printableArea'>

<?php $this->widget('bootstrap.widgets.TbDetailView',array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'userId',
		'name',
		'province_id',
		'finance_range',
		'partners',
		'file_path',
		'status',
		'created_date',
		'updated_date',
	),
)); ?>
</div>
<style type="text/css" media="print">
body {visibility:hidden;}
.printableArea{visibility:visible;} 
</style>
<script type="text/javascript">
function printDiv()
{

window.print();

}
</script>
